package org.jeecg.modules.music.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("mus_album_song")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "mus_album_song对象", description = "歌单表")
public class MusAlbumSong implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;

    /**
     * 艺术家姓名
     */
    @Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private String listname;

    /**
     * 状态(1：正常  2：冻结 ）
     */
    @Excel(name = "类别", width = 15,dicCode="mus_album_type")
    @Dict(dicCode = "mus_album_type")
    private Integer listType;

    @Excel(name = "封面", width = 15)
    @ApiModelProperty(value = "封面")
    private String avatar;

    @Excel(name = "推荐级别", width = 15,dicCode="mus_album_level")
    @Dict(dicCode = "mus_album_level")
    private Integer level;

    @Dict(dicCode = "mus_album_area")
    private Integer area;

    @Excel(name = "唱片公司", width = 15)
    @ApiModelProperty(value = "唱片公司")
    private String record;

    @Excel(name = "流派", width = 15)
    @ApiModelProperty(value = "流派")
    private String genre;

    @Excel(name = "语种", width = 15)
    @ApiModelProperty(value = "语种")
    private String language;

    /**
     * 生日
     */
    @Excel(name = "发布时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date publishDate;

    /**
     * 标签
     */
    @Excel(name="标签",width = 15,dictTable ="mus_category",dicText = "category_name",dicCode = "id")
    @Dict(dictTable ="mus_category",dicText = "category_name",dicCode = "id")
    private String categoryIds;

    /**
     * 删除状态（0，正常，1已删除）
     */
    @Excel(name = "删除状态", width = 15,dicCode="del_flag")
    private Integer delFlag;

    @Excel(name = "描述", width = 25)
    private String description;


    private Integer playCount;
    private Integer trackCount;

    @Dict(dictTable ="mus_artist",dicText = "cname",dicCode = "id")
    private String artistId;

    private Integer listOrder;


    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新人
     */
    private String updateBy;

    /**
     * 更新时间
     */
    private Date updateTime;

}
